﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MODEL;
using DAL;
using System.Data;

namespace BLL
{
    public class StuCardManage
    {
        public class StuCardService
        {
            /// <summary>
            /// 查询学生信息
            /// </summary>
            /// <returns></returns>
            public static DataTable ChaXunStudent()
            {
                return DAL.StuCardService.ChaXunStudent1();

            }
            /// <summary>
            /// 用存储过程查询
            /// </summary>
            /// <param name="stuCard"></param>
            /// <returns></returns>
            public static DataTable ChaXunStudent2(StuCard stuCard)
            {
                return DAL.StuCardService.ChaXunStudent2(stuCard);

            }
            /// <summary>
            /// 添加学生信息
            /// </summary>
            /// <param name="stuCard"></param>
            /// <returns></returns>
            public static int Add(StuCard stuCard)
            {
                return DAL.StuCardService.Add(stuCard);
            }
            /// <summary>
            /// 修改学生信息
            /// </summary>
            /// <param name="stuCard"></param>
            /// <returns></returns>
            public static int Update(StuCard stuCard)
            {
                return DAL.StuCardService.Update(stuCard);
            }
            /// <summary>
            /// 删除学生信息的方法
            /// </summary>
            /// <param name="stuCard"></param>
            /// <returns></returns>
            public static int StuCardDelete(StuCard stuCard)
            {
                return DAL.StuCardService.StuCardDelete(stuCard);
            }

            /// <summary>
            /// 学生登录
            /// </summary>
            /// <returns></returns>
            public static int ChaXunStudentPwd(StuCard stuCard)
            {

                return DAL.StuCardService.ChaXunStudentPwd(stuCard);

            }
        }
    }
}
